﻿<%@ Page Title="Ultimate Vacation Experience CMS :: Client Management" Language="C#" MasterPageFile="~/Agent/Agent.Master" AutoEventWireup="true" CodeBehind="ContactManagement.aspx.cs" Inherits="TravelSite.Agent.ContactManagement" %>
<%@ Register TagName="ContactDetails" Src="~/Controls/ContactDetails.ascx" TagPrefix="travel"  %>
<%@ Register TagName="SalesForm" Src="~/Controls/SalesForm.ascx" TagPrefix="travel"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
        $(function () {
            <%=this.JsCodeToRunOnReady%>;
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
            <div class="page_header">
                <h2><img src="<%=ResolveClientUrl("~") %>images/design/contact_tt_icon.png" alt="" title="" /> Client Management</h2>
            </div>

            <asp:UpdatePanel ID="upMain" runat="server" UpdateMode="Conditional">
            <ContentTemplate>

            <div class="search_panel">
                <div class="row">
                    <div class="col-lg-9">
                        <ul class="pagination pagination-sm pagination_margin">
                            <asp:Repeater runat="server" ID="dlAlphabets">
                                <ItemTemplate>
                                    <li class='<%#AlphabetCss(Eval("Value").ToString())%>'><asp:LinkButton ID="lnkAlphabet" runat="server" Text='<%#Eval("Value")%>' OnClick="Alphabet_Click" Enabled='<%# !Convert.ToBoolean(Eval("Selected"))%>' CssClass='<%#AlphabetCss(Eval("Value").ToString())%>' /></li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                    </div>
                    
                    <div class="col-lg-3">                    	
                        <asp:Button CssClass="btn btn-warning search_btn" ID="btnAdd" Text="Add New Client" runat="server" OnClientClick="createUpdateForm(-1); return false;" />
                    </div>
                    
                </div>
            </div>
            
            <div class="page_container">
                <div class="row">
                <asp:Repeater runat="server" ID="dlContacts">
                    <ItemTemplate>
                        <!--start user card-->
                        <div class="col-lg-3">
                    	<div class="user_card">
                        	<div class="card_left_color">
                            	<div class="card_user_pic">
                                	<img class="img-responsive" src="<%=ResolveClientUrl("~") %>images/design/card_user_pic.jpg" alt="" title="" />
                                </div>
                                
                                <div class="card_user_content">
                                	<h4><a href='javascript:void(0)' onclick="javascript:createUpdateForm(<%#Eval("ContactId")%>);"><%# Eval("FullName") %></a></h4><a style="font-size:12px" href='javascript:void(0)' onclick="javascript:createSalesForm(<%#Eval("ContactId")%>);">Prequalification</a>
                                    <p><%# GetCompanyAndJob(Eval("CompanyName"), Eval("JobTitle")) %></p>
                                    <p class="contact_no">
                                        <%# GetPhone(Eval("WPhone").ToString(), Eval("MPhone").ToString())%>
                                    </p>
                                    <p class="contact_no">
                                        <%# GetPin(Eval("Pin")) %>
                                    </p>
                                </div>
                            </div>
                        </div> 
                        </div>
                        <!--end user card-->    
                    </ItemTemplate>
                </asp:Repeater>
                </div>
                
                <div class="button_group">
                    <asp:Button CssClass="btn btn-warning" ID="btnAdd1" Text="Add New Client" runat="server" OnClientClick="createSalesForm(-1); return false;" />
                </div>
            </div>
            </ContentTemplate>
            <Triggers>
            </Triggers>
            </asp:UpdatePanel>
            <travel:ContactDetails ID="ctrlDetails"  runat="server" />
            <travel:SalesForm ID="ctrlSalesForm"  runat="server" />
</asp:Content>
